﻿@model IEnumerable<KM.ENT.entKhuyenMai>
           @using CORE
@using KM.HtmlHelpers
@{
    ViewBag.Title = "DanhSachKhuyenMai";
    Layout = "~/Areas/ADMIN/Views/Shared/MasterAdmin.cshtml";
}
<div class="row">

    <div class="row">
        <div class="col-lg-12">

            <div class="box">

                <div class="box-header" data-original-title="">
                    <h2><i class="fa fa-picture-o"></i><i class="fa fa-check" id="btnok"></i>Gallery</h2>

                    <div class="box-icon">
                        <a href="gallery.html#" class="btn-setting"><i class="fa fa-wrench"></i></a>
                        <a href="gallery.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
                        <a href="gallery.html#" class="btn-close"><i class="fa fa-times"></i></a>
                    </div>
                </div>
                <div class="box-content">
                    <div class="row">
                        <div class="col-lg-6">
                            <div id="DataTables_Table_0_length" class="dataTables_length">
                                <a class="btn btn-sm btn-primary" href="/RAdmin/SanPham/edit">Thêm mới</a>
                                <button class="btn btn-sm btn-warning">Cập nhật</button>
                                <button class="btn btn-sm btn-danger">Xóa</button>
                            </div>
                        </div>
                        <div class="col-lg-6">

                            <div class="dataTables_filter" id="DataTables_Table_0_filter">
                                <label>
                                    Search:
                                    <input type="text" id="txt_search" aria-controls="DataTables_Table_0">
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="root">
                        @foreach (var item in Model)
                        {
                            <div id="@item.KhuyenMaiId" style="margin-bottom: 10px" class="col-sm-2 col-xs-6 i">

                                <div class="img-r"></div>
                                <img class="img-thumbnail" src="@item.ImageSmall">
                                <span class="tdkm">@item.TieuDe</span>
                            </div>
                        }

                    </div>
                    <div class="row">
                        @Html.PhanTrang((KM.Models.PagingInfoModel)ViewBag.Page, x => Url.Action(null, null, new { id = ViewBag.Id, page = x }));
                    </div>
                </div>
            </div>
            <!--/col-->
        </div>
        <!--/col-->

    </div>
</div>
